package net.llz.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.llz.service.BannerService;
import net.llz.util.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Let-凡
 * @since 2023-01-28
 */
@RestController
@RequestMapping("/api/banner/v1")
@Api(tags = "轮播图")
public class BannerController {


    @Autowired
    private BannerService bannerService;
    @GetMapping("list")
    @ApiOperation("轮播图接口")
    public JsonData list(){

        return JsonData.buildSuccess(bannerService.list());
    }

}

